Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datepicker default time #632

Closed

Conversation

goranvujanovic
Copy link

Hi,
We use this project for a long time but we need a feature to set default time in date-picker config. Currently, default time is current time but we would like to have possibility to set 00:00 as default.
image

@goranvujanovic
Copy link
Author

This could be related to the issue #622

@vlio20
Copy link
Owner

vlio20 commented May 25, 2023

Can you please create a stackblitz of the issue?

@goranvujanovic
Copy link
Author

Can you please create a stackblitz of the issue?

I am not sure what exactly I need to add to Stackblitz. I can add simple angular app with date-picker and how a new property should be used.

@vlio20
Copy link
Owner

vlio20 commented May 25, 2023

Yes please. It would help with QAing it
So your intention is to have a date without actually having the value in the model itself?
In the following example I have set the default date and time by providing the value to the form-control:
https://stackblitz.com/edit/angular-ivy-mdqo8y?file=src%2Fapp%2Fhello.component.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants